package models

import "gorm.io/gorm"

type Film struct {
	Id        int     `gorm:"type:int auto_increment" json:"id"`
	Name      string  `gorm:"type:varchar(30)" json:"name"`
	Price     float64 `gorm:"type:decimal(10,2)" json:"price"`
	Types     string  `gorm:"type:enum('动作片','惊悚片','悬疑片')" json:"types"`
	Img       string  `gorm:"type:varchar(200)" json:"img"`
	Introduce string  `gorm:"type:text" json:"introduce"`
	User      string  `gorm:"type:varchar(30)" json:"user"`
	DeletedAt gorm.DeletedAt
}

type User struct {
	User     string `gorm:"type:varchar(30)" json:"user"`
	Password string `gorm:"type:varchar(30)" json:"password"`
}
